import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import User from '../pages/User'
import UserUpdate from '../pages/UserUpdate'
import UserSave from '../pages/UserSave'
export default new VueRouter({
    routes:[
        {path:'/user',component:User},
        {name:'userUpdate',path:'/user/update/:id',component:UserUpdate},
        {path:'/user/save',component:UserSave},
        {path:'/',redirect:'/user'}
    ]
})